41 SensorBasePtrList sensor_list_;
62 SensorBaseConstPtr
getSensor(
const std::string& _sensor_name)
const;
66 SensorBasePtr
getSensor(
const std::string& _sensor_name);
75 std::string _tabs =
"")
const;
83 std::ostream& stream = std::cout,
84 std::string _tabs =
"")
const;
88 virtual CheckLog localCheck(
bool _verbose, std::ostream& _stream, std::string _tabs =
"")
const;
92 bool check(
CheckLog& _log,
bool _verbose, std::ostream& _stream, std::string _tabs =
"")
const;
97 virtual SensorBasePtr addSensor(SensorBasePtr _sensor_ptr);
108 SensorBaseConstPtrList list_const;
109 for (
auto&& obj_ptr : sensor_list_) list_const.push_back(obj_ptr);
120 return not sensor_list_.empty();
Log of a consistency check: whether it is consistent and the explanation of the inconsistencies.
Definition: check_log.h:30
Hardware: the sensors of the problem.
Definition: hardware_base.h:37
SensorBaseConstPtr getSensor(const std::string &_sensor_name) const
Returns a sensor by its name (nullptr if not found)
Definition: hardware_base.cpp:40
HardwareBase()
Constructor.
Definition: hardware_base.cpp:24
SensorBaseConstPtrList getSensorList() const
Returns the installed sensors.
Definition: hardware_base.h:106
void print(int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream=std::cout, std::string _tabs="") const
Prints this node and, depending on the depth, its children.
Definition: hardware_base.cpp:68
bool hasChildren() const override
Returns whether the node has children in the Wolf tree.
Definition: hardware_base.h:118
virtual CheckLog localCheck(bool _verbose, std::ostream &_stream, std::string _tabs="") const
Checks the consistency of this node (not of its children)
Definition: hardware_base.cpp:81
~HardwareBase() override
Definition: hardware_base.cpp:29
bool check(CheckLog &_log, bool _verbose, std::ostream &_stream, std::string _tabs="") const
Checks the consistency of this node and its children, composing the log.
Definition: hardware_base.cpp:98
virtual void printHeader(int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const
Prints the information of this node (not of its children)
Definition: hardware_base.cpp:58
Base class for Nodes.
Definition: node_base.h:73
Base class of sensors: their state blocks (extrinsics and intrinsics, static or dynamic),...
Definition: sensor_base.h:128
Definition: capture_base.h:23